import request from '../utils/request';

//首页
export function getHome(){
   return request.get('/')
}
export function brandDatail(id:number){
   return request.get('/brand/detail',{params:{id}})
}
export function cartDatail(id:number){
   return request.get('/goods/detail',{params:{id}})
}
export function getCartRelated(id:number){
   return request.get('/goods/related',{params:{id}})
}
export function addCollect(typeId:string,valueId:string){
   return request.post('/collect/addordelete',{typeId,valueId})
}
export function addCart(goodsId:string,number:string,productId:string){
   return request.post('/cart/add',{goodsId,number,productId})
}
export function addComment(content:string,typeId:string,valueId:string){
   return request.post('/comment/post',{content,typeId,valueId})
}
